swap case in python assignment expert